package com.nervenets.web.controller.handler.admin.setting;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.common.TokenParams;
import com.nervenets.web.enumeration.TagType;
import com.nervenets.web.validation.Type;

public class TagEditParams extends TokenParams {
    @NeedValidation(type = Type.EMPTY, description = "新建传0，编辑传相应ID")
    private int tagId;
    @NeedValidation(type = Type.NOTEMPTY, description = "标签分类")
    private TagType tagType;
    @NeedValidation(type = Type.NOTEMPTY, description = "标签名称")
    private String name;
    @NeedValidation(type = Type.EMPTY, description = "标签图标")
    private String icon;
    @NeedValidation(type = Type.NUMBER, description = "排序，越大越靠前")
    private int queue;
    @NeedValidation(type = Type.NOTEMPTY, description = "是否启用")
    private boolean enable;

    public int getTagId() {
        return tagId;
    }

    public void setTagId(int tagId) {
        this.tagId = tagId;
    }

    public TagType getTagType() {
        return tagType;
    }

    public void setTagType(TagType tagType) {
        this.tagType = tagType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getQueue() {
        return queue;
    }

    public void setQueue(int queue) {
        this.queue = queue;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }
}
